<?php slot("ms","sections.nw")?>
<h1 class="title"><?php echo __("Lista de Secciones") ?></h1>

<table class="tbl-1">
  <thead>
    <tr>
      <th><?php echo __("Codigo") ?></th>
      <th><?php echo __("Titulo") ?></th>
      <th><?php echo __("Extracto") ?></th>
    </tr>
  </thead>
  <tfoot>
    <tr>
      <th><?php echo __("Codigo") ?></th>
      <th><?php echo __("Titulo") ?></th>
      <th><?php echo __("Extracto") ?></th>
    </tr>
  </tfoot>
  <tbody>
    <?php foreach ($sections as $section): ?>
    <tr>
      <td><a href="<?php echo url_for('sections/show?code='.$section->getCode()) ?>"><?php echo $section->getCode() ?></a></td>
      <td><?php echo $section->getTitle() ?></td>
      <td><?php echo substr(strip_tags($section->getRawValue()->getInfo()),0,100); ?>...</td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a class="button" href="<?php echo url_for('sections/new') ?>">New</a>
